//! Service definition for daemons/servers that connect to some number of remote
//! peers that we can query about.

use std::net::SocketAddr;

use crate::prelude::*;
use crate::service;

#[async_trait]
pub trait P2PService {
    async fn get_peers(&self) -> Result<Vec<SocketAddr>, service::SvcError>;
    async fn get_max_peers(&self) -> Result<u32, service::SvcError>;
}
